# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-algorithm-annotate
pkgver=0.10
pkgrel=14
pkgdesc="Perl/CPAN Module Algorithm::Annotate"
arch=("any")
url="https://search.cpan.org/dist/Algorithm-Annotate"
license=("GPL" "PerlArtistic")
makedepends=("perl-algorithm-diff")
depends=("perl-algorithm-diff")
source=("https://www.cpan.org/authors/id/C/CL/CLKAO/Algorithm-Annotate-$pkgver.tar.gz")
sha256sums=('c9b1764643933eb1a3356906cc372d483a99416207a31df3e58ee9892d9922f9')

build() {
  cd "$srcdir"/Algorithm-Annotate-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Algorithm-Annotate-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
